package com.wzcl.app.model.dto;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class PromotionDto extends BaseDto {

    @NotNull(message = "活动Id不能为空")
    @ApiModelProperty(value = "活动Id")
    private Integer activityId;

    @NotNull(message = "活动类型不能为空")
    @ApiModelProperty(value = "活动类型")
    private Integer type;

    //-------------满减-----------------
    @ApiModelProperty(value = "满减类型")
    private Integer fullCutType;

    @ApiModelProperty(value = "满价格值")
    private String fullPrice;

    @ApiModelProperty(value = "减价格值")
    private String cutPrice;

    //----------秒杀/单品/拼团
    @ApiModelProperty(value = "促销数值")
    private String value;

    //-----------单品/秒杀----------------
    @ApiModelProperty(value = "促销类型")
    private Integer promotionType;

    //------秒杀特有---------
    @ApiModelProperty(value = "秒杀数量")
    private Integer stock;

    //----------拼团特有---------------
    @ApiModelProperty(value = "满人数")
    private BigDecimal groupSize;

    @ApiModelProperty(value = "成团时间")
    private Long time;

    //-----------排序------------------
    @NotNull(message = "优先级不能为空")
    @ApiModelProperty(value = "排序字段")
    private Integer orderNo;

}
